package com.springboot.study.tests.completablefuture;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @Description: TODO
 * @Author dongguo
 * @Date 2020/6/23 10:04
 * @Version V1.0
 **/
public class CompletableFutureTest {

    public static void main(String[] args) {
        BigDecimal bigDecimal = BigDecimal.valueOf(-23.0089);
        System.out.println(bigDecimal.setScale(2,  RoundingMode.HALF_UP));
    }

}
